__author__ = "ncll"
__data__ = "2020/11/2 20:38"


# 偶数的累计和

# num = 0
# num_sum = 0
# while num <= 100:
#     if num % 2 == 0:
#        num_sum += num
#     num += 1
# print(num_sum)

# 打印
# *
# **
# ***
# ****
# *****

# i = 1
# j = 1
# while i < 6:
#     while j <= i:
#         print("*", end="")
#         j += 1
#     j = 1
#     print("")
#     i += 1

# 99乘法表

# i = 1
# j = 1
# while i < 10:
#     while j <= i:
#         print("%d * %d = %-3d " % (j, i, i*j), end="")   # -2d 由右往左，2d 由左往右留两格(=后)
#         j += 1
#     j = 1
#     print("")
#     i += 1

# for 循环
for name in range(1, 3):   # range()左闭右开[1,3)
    print(name)
